package cn.scw.common.separate.response;

import cn.scw.common.separate.common.Constants;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class BaseResponse implements Serializable {

    private static final long serialVersionUID = -4130200144525370066L;

    /**
     * 返回码‘0000’业务受理成功，其他失败
     */
    private String retCode = "0000";

    /**
     * 返回码描述
     */
    private String retMsg;

    public Boolean success = false;

    public Boolean getSuccess() {
        return retCode.equalsIgnoreCase(Constants.SUCCESS_CODE);
    }
}
